#pragma once

#include "transformable.h"
#include "openaudio_global.h"
#include <osg/Vec3>
#include "scene.h"

namespace OpenAudio
{
	class OPENAUDIO_EXPORT Listener : public  CoreBase::Transformable
	{
	public:
		Listener(CoreBase::Scene* sender);
	protected:
		virtual ~Listener();
	public:
		void setVelocity(const osg::Vec3f& velocity);
		void getVelocity(osg::Vec3f& velocity) const;
		void setGain(float gain);
		float getGain() const;
		void clear(void);
	public slots:
		virtual void onMessage(MessageData*);
	};
} 
